function Data(callback, delay, x = 200, y = 600) {
	let timer;
	this.getData = function() {
		const data = x + Math.random() * y | 0;
		callback(data);
		timer = setInterval(function() {
			const data = x + Math.random() * y | 0;
			callback(data);
		}, delay);
	}
	this.cancelData = function() {
		clearInterval(timer);
	}
}
